package com.nuanshui.heatedloan.credit.facade;

import com.nuanshui.heatedloan.credit.response.CalculationLimitResponse;
import com.nuanshui.heatedloan.credit.response.ClientResponse;
import com.nuanshui.heatedloan.credit.response.PersonPageStatusResponse;

import java.util.Map;

/**
 * Created by wangxw on 2017/6/26.
 */
public interface ExecuteCustomAuthService {

    /***
     * 获取状态
     * @param userId
     * @param type
     * @return
     */
    Map<String,Object> getCustomAuthStatus(String userId, int type);

    /***
     * 计算额度
     * @param userId
     *
     *
     */
    void calculationLimit(String userId);

    /***
     * 个人页状态的返回
     * @param userId
     * @return
     */
    PersonPageStatusResponse getPersonPageStatus(String userId);

    /***
     * 白名单接口，返回的是否在白名单
     * @param phone
     * @return
     */
    ClientResponse isWhiteList(String phone,String userId);

    /***
     * 计算额度回回调接口
     * @param calculationLimitResponse
     */
    public void callBackCalculationLimit(CalculationLimitResponse calculationLimitResponse);

    /***
     * 计算额度消息队列
     * @param calculationLimitResponse
     */
    public void  sendMqCallBackCalculationLimit(CalculationLimitResponse calculationLimitResponse);

}
